Three nouns, though very raozui, are very accurate. The semantic analysis of Chinese words can easily separate three concept areas.
one) constant pointer.
A constant is an adjective, and a pointer is a noun, a biased structure phrase centered on
In C/C ++ learning, some people often cannot understand the concepts of "constant Pointer" and "pointer constant. In fact, the data on the address pointed to by the "constant Pointer" is a constant, while the address pointed to by the "pointer
ObjectiveA few days ago the woman ticket asked me a Ali's face question, is about the C + + language const constant, in fact, she mentioned that I know the point of inspection: it is certain that the const constant memory is not allocated in the
Touch Java constant Pool
Java constant pool is an enduring topic, but also the interviewer's favorite, the topic is full of patterns, the side dishes have already heard of the constant pool, this time a good summary.
Theory
A piece of cake first.
This article mainly introduces the C language of constant pointer and pointer constant difference, the need for friends can refer to
A constant pointer refers to a pointer to a constant, as the name suggests, is the pointer to a constant, that is,
The Java heap is a run-time data area in which objects allocate space. These objects are established through directives such as new, NewArray, Anewarray, and Multianewarray, and they do not require program code to be explicitly released. Heap is
constant PointerRefers to--a pointer to a constant, as the name suggests, is the pointer to a constant, that is, it can not point to the variable, it points to the content can not be changed, not through the pointer to modify the content it points
The memory model of the JVM runtime data area consists of five parts:"1" Method area"2" heap"3" Java stack"4" PC register"5" Local method stackfor string s = "haha", it's virtual machine directive:0:LDC #16; String haha2:astore_13:returnFor the
As the introduction of memory allocation on the internet is relatively simple, I wrote a copy by myself.
If you have a problem with contact C, please point out that you are welcome to discuss it.
The compiling environment is vs2005...
First, let's
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.